-- round_attrib
-- create by zhuangsl
-- 每回合属性百分比提升

return {
    apply = function(prop, baseValue)
        return prop[3];
    end,

    -- 每回合触发
    trigger = function(who, prop, arg)
        local propId = PropM.getPropId("attrib");
        local arr = {propId, prop[2], prop[3], -1}

        -- 附加属性
        PropM.record(who, arr, "round_attrib");

        -- 刷新界面属性显示
        EventMgr.fire(event.NEED_REFRESH_ATTRIB, {prop[2]});
    end,

    clear = function(who, prop)
        PropM.deleteProp(who, "round_attrib")
    end,

    record = function(target, prop, path)
        return false;
    end
};
